<extend name="Index::index"/>
<block name="table">
    <!--右内容区域-->
    <div class="layout-content">

        <div class="page-title">电影管理</div>

        <div class="content-top">
            <ul class="top-nav">
                <li class="active"><span>电影列表</span></li>
            </ul>
            <div class="clearfix"></div>
        </div>

        <!--content-main start-->
        <div class="container-fluid content-main">
            <div class="row">
                <div class="col-md-12">
                    <notempty  name="message">
                        <div class="ui-tips bg-info">
                            <span class="icon glyphicon glyphicon-info-sign"></span> <span>{$message}</span>
                        </div>
                    </notempty>
                    <form class="form-horizontal" action="{:U('Movie/up')}?id={$id}" method="post" enctype="multipart/form-data">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">电影名</label>
                            <div class="col-sm-8">
                                <input type="text" name="name" class="form-control" value="{$finds['name']}">
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">演员列表</label>
                            <div class="col-sm-8">
                                <input type="text" name="actore" class="form-control" value="{$finds['actor']}">
                                <span class="help-block">请按照 <b>张山/李四/王五</b> 输入</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">电影时长</label>
                            <div class="col-sm-8">
                                <select name="long" id="form-control" class="form-control">
                                    <option value="60">60分钟</option>
                                    <option value="120">120分钟</option>
                                </select>
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">上映时间</label>
                            <div class="col-sm-8">
                                <input type="text" name="release_at" class="form-control" value="{$finds['release_at']}">
                                <span class="help-block">请按照 <b>2008</b> 的格式输入</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">电影图片</label>
                            <div class="col-sm-8">
                                <input type="file" name="pic">
                                <span class="help-block">只能上传 <b>"jpg","png","jpeg"</b> 格式的图片</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label language">语言</label>
                            <div class="col-sm-8">
                                <select name="language" class="form-control">
                                    <foreach name ="language"  item="va" key="ke">
                                        <option value="{$ke}">{$va}</option>
                                    </foreach>
                                </select>
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label label_s">标签</label>
                            <div class="col-sm-8">
                                <foreach name ="tags"  item="vall" key="kk">
                                    <label for="comedy{$kk}"><input type="checkbox" id="comedy{$kk}"name="tags[]" value="{$kk}" > {$vall} </label>
                                </foreach>
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">简介</label>
                            <div class="col-sm-8">
                                <textarea name="summary"   class="Introduction form-control" >{$finds['summary']}</textarea>
                                <span class="help-block">字符不要超过 <b style="cole">200</b> 字</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">描述</label>
                            <div class="col-sm-8">
                                <textarea name="description" class="Introduction form-control">{$finds['description']}</textarea>
                                <span class="help-block">字符不要超过 <b style="cole">200</b> 字</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>

                            <div class="col-sm-8">
                                <select name="status" class="form-control">
                                    <!--状态在 create 方法里面-->
                                    <foreach  name="status" item="val" key="k">
                                        <option value="{$k}">{$val}</option>
                                    </foreach>
                                </select>
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <!--  <div class="form-group">
                              <div class="col-sm-offset-2 col-sm-8">
                                  <div class="checkbox">
                                      <label>
                                          <input type="checkbox"> Remember me
                                      </label>
                                  </div>
                              </div>-->
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-8">
                        <button type="submit" class="btn btn-default">保存</button>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
    <!--右内容区域结束-->
    <script>
        $('#Chinese10').attr('checked',true);
        $('#comedy10').attr('checked',true);
    </script>
    <div class="clearfix"></div>
    </div>
    </div>
    </section>


</block>
